package com.bjut.dailyserver.dao;

import com.bjut.dailyserver.entity.TBriefNews;
import com.bjut.dailyserver.entity.TCollection;
import com.bjut.dailyserver.entity.TUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface TCollectionDao extends JpaRepository<TCollection,Long>, JpaSpecificationExecutor<TCollection> {
    List<TCollection> findByTUser(TUser tUser);
    List<TCollection> findByTUserAndTBriefNews(TUser tUser, TBriefNews tBriefNews);

}
